import type { articleParams, articleRes, channel } from "@/types/article"
import { request } from "@/utils/request"

export const articleGetChannelAPI=()=>{
  return request<channel>('/v1_0/channels')
}
export const articleAPI=(params:articleParams)=>{
  return request<articleRes>('/v1_0/mp/articles', 'GET', params)
}
export const articleDeleteAPI=(id:number)=>{
  return request('/v1_0/mp/articles/'+id, 'DELETE')
}
